package com.example.controller;

import com.example.mapper.OutpatientMapper;
import com.example.pojo.vo.OutpatientVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("outpatient")
public class OutpatientController {
    @Autowired(required = false)
    OutpatientMapper mapper;
    @RequestMapping("/select")
    public List<OutpatientVO> selectOutpatient(String key){
        if(key.equals("1-1")){
            String state = "未诊";
            return mapper.selectOutpatient();
        }
       return null;
    }
}
